package com.cfs.svc.bz;

import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import com.cfs.po.bz.Information;
import com.cfs.vo.Condition;
import com.cfs.vo.Res;

/**
 * 信息/新闻 服务
 *	
 *	@author SDZJ
 *
 */
@Path("/Infos")
public interface InformationService {

	@POST
	@Path("/release")
	public Integer release(Information info);

	@POST
	@Path("/get")
	public List<Information> list(Condition c);

	@POST
	@Path("/getp")
	public Res<Information> listP(Condition c);

	@GET
	@Path("/get/{id}")
	public Information get(@PathParam("id")Long id);

	@POST
	@Path("/add")
	public Long add(Information info);

	@GET
	@Path("/del/{id}")
	public Integer deleteById(@PathParam("id") Long id);

	@POST
	@Path("/upd")
	public Long update(Information info);

	@GET
	@Path("/query/{col_id}/{terminal}")
	public List<Information> query(@PathParam("col_id") Long col_id,
			@PathParam("terminal") String terminal);
}
